package com.ruyuan.eshop.seller.domain.request;

import com.ruyuan.eshop.framework.domain.request.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * <p>
 *
 * </p>
 *
 * @author pwd
 * @version 1.0
 */
@ApiModel
@Data
public class OrderShipRequest extends BaseRequest {

    @ApiModelProperty("物流单号")
    @NotNull(message = "必须指定订单编号")
    @Length(max = 20, message = "物流单号不正确")
    private String shipNo;

    @ApiModelProperty("物流公司id")
    @NotNull(message = "必须选择物流公司")
    private Long logiId;

    @ApiModelProperty("物流公司名称")
    private String logiName;

}